package com.matrix.gallery.net

class GalleryResult<T> {
    var t: T? = null
    var code: Int = 0
    var msg: String = ""

    companion object {
        const val SUCCESS: Int = 200
        const val FAIL: Int = 400
        const val ERROR: Int = 500
    }

    constructor(code: Int, t: T?) {
        this.code = code
        this.t = t
    }

    constructor(code: Int, msg: String) {
        this.code = code
        this.msg = msg
    }

    constructor(code: Int, msg: String, t: T?) {
        this.t = t
        this.code = code
        this.msg = msg
    }


}